export const echartDefault = {
  data () {
    return {
      chartInstance: null,
      initOption: null
    }
  },
  created () {
    // this.getDatas()
  },
  beforeDestroy () {
    window.removeEventListener('resize', () => {
      this.chartInstance.resize()
    })
  },
  methods: {
    // getDatas () {}
    echartsResize () {
      window.addEventListener('resize', () => {
        this.chartInstance.resize()
      })
    }
  }
}
